import request from '@/utils/request'

export function getRoleList(data) {
	return request({
		url: '/role/get-role-list',
		method: 'post',
		data
	})
}

export function getRoleDetail(data) {
	return request({
		url: '/role/get-role-detail',
		method: 'post',
		data
	})
}

export function saveRole(data) {
    return request({
        url: '/role/save-role',
        method: 'post',
        data
    })
}

export function getAccessNodeTree(data) {
    return request({
        url: '/role/get-access-node-tree',
        method: 'post',
        data
    })
}

export function saveAccessNode(data) {
    return request({
        url: '/role/save-access-node',
        method: 'post',
        data
    })
}

export function getAccessNodeDetail(data) {
	return request({
		url: '/role/get-access-node-detail',
		method: 'post',
		data
	})
}
